package Capa_Presentacion;

import java.awt.*;
import javax.swing.*;

public class Panel extends javax.swing.JPanel {

    public Panel() {
        initComponents();
        this.setSize(800,600);
    }

    public void paintComponent(Graphics g){
        Dimension tam = getSize();
        ImageIcon ImagenFondo= new ImageIcon(getClass().getResource("/imagenes/logosinbrillo.jpg").getFile());
        g.drawImage(ImagenFondo.getImage(),0,0,800,600,null);
        setOpaque(false);
        super.paintComponent(g);
    }
            
    private void initComponents() {

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );
    }
}
